package org.example.service;

import org.example.error.BusinessException;
import org.example.service.model.UserModel;

public interface UserService {
    //通过y用户ID获取用户对象的方法
    UserModel getUserById(Integer id);
    void register(UserModel userModel) throws BusinessException;
    //teiphon是用户手机号，password是加密的密码
    UserModel vaildateLogin(String teiphon,String encrptPassword) throws BusinessException;
}
